namespace Kayac
{
	public struct PidState<T>
	{
		public T prevE;   // 上一次的误差值
		public T eSum;    // 误差累积值

		public PidState(T prevE, T eSum)
		{
			this.prevE = prevE;
			this.eSum = eSum;
		}
	}
}